package cn.tedu._06article.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class ArticleInsertParam {
    @NotBlank(message = "标题不能为空")
    @ApiModelProperty(value = "文章标题",required = true)
    private String title;
    @Size(min = 10,max = 500,message = "内容长度为10-500")
    @ApiModelProperty(value = "文章内容",required = true)
    private String content;
}
